﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="flow.aspx.cs" Inherits="书易.WEB.flow" %>

<%@ Register Src="~/ShangPingZS.ascx" TagPrefix="uc1" TagName="ShangPingZS" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript">
        var span1;
        window.onload = function () {
            span1 = document.getElementById("span1");
        }
        function updateP(txt) {
            span1.style.display = "inline";

            var tr = txt.parentElement.parentElement;

            var price = parseFloat(tr.cells[1].innerText);

            var count = parseInt(txt.value);
            if (count <= 0) {
                count= txt.value = 1;
            }
            var money = price * count;

            
            tr.cells[3].innerText = money.toFixed(2) + "元";
            
        }
    </script>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form runat="server">
        <div class="block clearfix">
            <div class="f_l">
                <a name="top" href="">
                    <img src="images/logo.gif">
                </a>
            </div>
            <div class="f_r log">
                <ul>
                    <li class="userInfo"><font id="ECS_MEMBERZONE">
                        <div id="append_parent">
                        </div>
                        欢迎光临本店&nbsp;&nbsp;&nbsp;&nbsp; <a href="#">
                            <img src="images/bnt_log.gif"></a> <a href="#">
                                <img src="images/bnt_reg.gif"></a> </font></li>
                </ul>
            </div>
        </div>
        <div class="blank">
        </div>
        <div class="clearfix" id="mainNav">
            <a class="cur" href="main.aspx">首页<span></span></a> <a href="main.aspx">历史人文<span></span></a>
            <a href="main.aspx">网络小说<span></span></a> <a href="main.aspx">现代文学<span></span></a>
            <a href="main.aspx">古典文学<span></span></a> <a href="main.aspx">软件类<span></span></a>
            <a href="main.aspx">硬件类<span></span></a>
        </div>
        <div class="clearfix" id="search">
            <div style="_position: relative; top: 5px;" class="f_r" onsubmit="" action="#" method="get"
                name="searchForm" id="searchForm">
                书名:<input type="text" style="width: 110px;" class="B_input" value="" id="keyword"
                    name="keywords">
                <input type="submit" style="cursor: pointer;" class="go" value="" name="imageField">
            </div>
        </div>
        <div class="block">
            <div class="flowBox">
                <h6>
                    <span>商品列表</span></h6>
                <!-- 商品展示-->
                <div>
                    <table align="center" width="99%" cellspacing="1" cellpadding="5" border="0" bgcolor="#dddddd">
                        <tbody>
                            <tr>
                                <th bgcolor="#ffffff">商品名称
                        </th>
                                <th bgcolor="#ffffff">价格
                        </th>
                                <th bgcolor="#ffffff">购买数量
                        </th>
                                <th bgcolor="#ffffff">小计
                        </th>
                                <th bgcolor="#ffffff">操作
                        </th>
                            </tr>
                            <asp:Repeater runat="server" ID="rep_GWC" OnItemDataBound="rep_GWC_ItemDataBound" OnItemCommand="rep_GWC_ItemCommand">
                                <ItemTemplate>
                                    <tr>
                                        <td align="center" bgcolor="#ffffff">
                                            <img border="0" width="100px" height="100px;" title='<%#Eval("bname") %>' alt='<%#Eval("bname") %>' src='<%#Eval("bpic","BookImages/{0}") %>'><br>
                                            <%#Eval("bname") %>
                            </td>
                                        <td align="right" bgcolor="#ffffff">
                                          <asp:Literal runat="server" ID="lit_pric" Text='<%#Eval("bprice","{0:0.00}元") %>'></asp:Literal> 
                            </td>
                                        <td align="right" bgcolor="#ffffff">
                                           
                                            <asp:TextBox onchange="updateP(this)" onkeyup="updateP(this)" runat="server" style="text-align: center" CssClass="inputBg" Text='<%#Eval("BCount")%>' ID="txt_count" Width="33" AutoPostBack="true" BorderStyle="None" TextMode="Number" TID='<%#Eval("TID") %>' BID='<%#Eval("BID") %>'></asp:TextBox>
                                        </td>
                                        <td align="right" bgcolor="#ffffff">
                                            <asp:Literal runat="server" ID="lit_price" Text='<%#Eval("sumJiaG","{0:0.00}元") %>'></asp:Literal> 
                            </td>
                                        <td align="center" bgcolor="#ffffff">

                                            <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm('您确实要把该商品移出购物车吗')" OnClick="LinkButton1_Click1" CommandName="sc" CommandArgument='<%#Eval("tid") %>'>删除</asp:LinkButton>
                                            <!-- <a class="f6" href="javascript:if (confirm('您确实要把该商品移出购物车吗？')); ">删除</a>-->
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>
                </div>
                <table align="center" width="99%" cellspacing="0" cellpadding="5" border="0" bgcolor="#dddddd">
                    <tbody>
                        <tr>
                            <td align="left" bgcolor="#ffffff">
                                <a href="consignee.aspx">
                                    <img alt="checkout" src="images/checkout.gif" />
                        </td>
                            <td align="right" bgcolor="#ffffff">
                                <span style="color:red;display:none" id="span1">数量以改变，点击确定按钮保存</span>
                                <asp:Button runat="server" Text="确定" CssClass="bnt_blue" OnClick="Unnamed1_Click"/>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="blank5">
            </div>
        </div>
        <div id="footer">
            <div class="text">
                &copy; 2005-2012 ECSHOP 版权所有，并保留所有权利。<br>
                <br>
                共执行 41 个查询，用时 0.090556 秒，在线 2 人，Gzip 已禁用，占用内存 3.136 MB<br>
                <a style="font-family: Verdana; font-size: 11px;" target="_blank" href="http://www.ecshop.com">Powered&nbsp;by&nbsp;<strong><span style="color: #3366FF">ECShop</span>&nbsp;<span
                    style="color: #FF9966">v2.7.0</span></strong></a>&nbsp;<br>
                <div align="left" id="rss">
                    <a href="#">
                        <img alt="rss" src="images/xml_rss2.gif"></a>
                </div>
            </div>
        </div>


    </form>
</body>
</html>


